package reflect;

import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1);
        doSome(1,"ab");
        doSome(1,"a","b");
        doSome(1,"a","b","c");
        doSome(1,"a","b","c","d");
    }
    public static void doSome(int a,String... args){

        System.out.println(a+Arrays.toString(args));
    }
}
